:root {
    --primary: #00f7ff;
    --secondary: #4a4aff;
    --dark: #0a0a2e;
    --bg-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --nav-height: 60px;
}
.asaiweb {
    background-color: var(--dark);
    color: var(--primary);
}
/* 导航栏 */
.kdd-nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 0 20px;
    height: var(--nav-height);
    z-index: 1000;
    transition: 0.3s;
}

.kdd-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kdd-logo {
    font-size: 1.8rem;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.kdd-nav-menu {
    display: flex;
    gap: 2rem;
    transition: 0.3s;
}

.kdd-nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: 0.3s;
    white-space: nowrap;
}

.kdd-nav-menu a:hover {
    background: var(--bg-gradient);
    box-shadow: 0 0 15px var(--primary);
}

.kdd-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 主内容区 */
.kdd-hero {
    min-height: calc(100vh - var(--nav-height));
    padding: var(--nav-height) 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        circle at center,
        rgba(0, 247, 255, 0.1) 0%,
        rgba(10, 10, 46, 1) 70%
    );
}

.kdd-search-box {
    width: min(90%, 700px);
    position: relative;
}

#kdd-searchInput {
    width: 100%;
    padding: 1.2rem 2rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

#kdd-searchInput:focus {
    outline: none;
    box-shadow: 0 0 30px var(--primary);
}

.kdd-main-area {
    height: 100%;
    overflow: hidden;
}

/* 卡片网格 */
.kdd-grid-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.kdd-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 247, 255, 0.2);
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.kdd-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        var(--primary),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.kdd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 247, 255, 0.3);
}

.kdd-card:hover::before {
    opacity: 0.3;
    animation: kddBorderFlow 3s linear infinite;
}

@keyframes kddBorderFlow {
    0% {
        transform: rotate(45deg) translate(-30%, -30%);
    }

    100% {
        transform: rotate(45deg) translate(30%, 30%);
    }
}

/* 页脚 */
.kdd-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem 20px;
    text-align: center;
    font-size: 0.9rem;
}

.kdd-footer a,
.kdd-footer a:link,
.kdd-footer a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .kdd-nav-menu {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        flex-direction: column;
        background: rgba(10, 10, 46, 0.95);
        width: min(300px, 80%);
        padding: 2rem;
        backdrop-filter: blur(10px);
        border-radius: 0 0 0 20px;
    }

    .kdd-nav-menu.active {
        right: 0;
    }

    .kdd-menu-toggle {
        display: block;
    }

    .kdd-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 50px;
    }

    .kdd-logo {
        font-size: 1.5rem;
    }

    .kdd-hero {
        min-height: 80vh;
    }

    #kdd-searchInput {
        padding: 1rem 1.5rem;
    }

    .kdd-grid-container {
        margin: 3rem auto;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .kdd-nav-bar {
        padding: 0 15px;
    }

    .kdd-card h3 {
        font-size: 1.1rem;
    }

    .kdd-card p {
        font-size: 0.9rem;
    }

    .kdd-footer {
        padding: 2rem 15px;
    }
}
